import Vue from 'vue'
import {axios} from '@/utils/request'

export function getInfo(hzfpxxqrdbh) {
    return axios({
        url: "/vatoutinv/vmsIssueNegativeInvoices/getInfoByRedNo?hzfpxxqrdbh=" + hzfpxxqrdbh,
        method: 'post'
    })
}

export function getList(data) {
    return axios({
        url: "/vatoutinv/vmsIssueNegativeInvoices/page",
        method: 'post',
        data
    })
}

export function getRedList(data) {
    return axios({
        url: "/vatoutinv/vmsIssueNegativeInvoices/redPage",
        method: 'post',
        data
    })
}

export function openInvoice(hzfpxxqrdbh, bz) {
    let data = {
        hzfpxxqrdbh,
        bz
    }
    return axios({
        url: "/vatoutinv/vmsIssueNegativeInvoices/invoice",
        method: 'post',
        data
    })
}
export function checkStatus() {
    return axios({
        url: "/vatoutinv/vmsIssueNegativeInvoices/checkStatus",
        method: 'post',
    })
}